#ifndef NETWORKZINGMEGETONLINEFRIENDREQUEST_H
#define NETWORKZINGMEGETONLINEFRIENDREQUEST_H

#include "network/networkgetjsonrequest.h"

#include <QPointer>


namespace Network {
class JSONResponse;
}


class GetOnlineFriendResponse;

class GetOnlineFriendRequest : public Network::GetJSONRequest
{
    Q_OBJECT
public:
    explicit GetOnlineFriendRequest(const QString &sessionKey);
    ~GetOnlineFriendRequest();


private:
    GetOnlineFriendResponse* m_response;
    QString m_sessionKey;


private:
    Network::JSONResponse &jsonResponse();

public:
    const Network::JSONResponse &jsonResponse() const;
    QUrl url() const;
};


#endif // NETWORKZINGMEGETONLINEFRIENDREQUEST_H
